<template>
  <div class="container">
    <div>
      <logo />
      <h1 class="title">
        app-nuxt
      </h1>
      <div id="content">
        <ul>
          <li>{{ detail.name }}</li>
          <li>{{ detail.desc }}</li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import Logo from '@/components/Logo.vue'
export default {
  components: {
    Logo
  },
  async asyncData ({ $axios }) {
    const res = await $axios.$get('/meng/collect')
    return { detail: res }
  },
  data () {
    return {
      detail: null
    }
  }

}
</script>

<style lang="less" scoped>
.container {
  margin: 0 auto;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  ul {
    list-style: none;
  }
}
</style>
